"""

"""
from info import creat


# 导入sqlalchemy模型类文件
from info import models, db

from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

# 选择启动应用模式：开发模式"developer",生产模式"generate"
app = creat("developer")
# 实例数据库迁移对象
Migrate(app, db)
# 实例命令行管理对象，添加命令
manager = Manager(app)
manager.add_command("db", MigrateCommand)


if __name__ == '__main__':
    manager.run()
